package com.winning.pmph.ctrl;

import com.winning.pmph.entity.Rule;
import com.winning.pmph.service.RuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(value = "字典")
@RestController
@RequestMapping("/pmph/action/ruleCtrl")
public class RuleCtrl {

    @Resource
    private RuleService ruleService;

    @ApiOperation(value = "selectList", notes = "查询字典列表")
    @GetMapping("/selectList")
    public List<Rule> selectList() {
        return ruleService.selectList();
    }

}
